package com.endbd.feignapi.api;

import com.endbd.feignapi.model.purchase.CPurchase;
import com.endbd.feignapi.util.PageModel;
import com.endbd.feignapi.util.ResultMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient("purchase-service")
public interface PurchaseApi {

    @RequestMapping("/purchase/detail")
    @ResponseBody
    public ResultMessage queryDetailById(@RequestParam(value = "purchaseId", required = false) String pid);


    @RequestMapping("/purchase/view2")
    public ResultMessage queryPageByCondition(@RequestParam Integer checkStatus, @RequestParam Integer  rkStatus);

    @RequestMapping("/purchase/updateView")
    public ResultMessage updateWarehouseIdAndRkStatus(@RequestParam String p,@RequestParam String w);
}
